<?php
class Article extends AppModel {

	var $name = 'Article';
	var $validate = array(
		'itext_id' => array('numeric'),
		'ititle_id' => array('numeric'),
		'editor_id' => array('numeric')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Itext' => array(
			'className' => 'Itext',
			'foreignKey' => 'itext_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Ititle' => array(
			'className' => 'Itext',
			'foreignKey' => 'ititle_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Editor' => array(
			'className' => 'Editor',
			'foreignKey' => 'editor_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

	var $hasMany = array(
		'Comment' => array(
			'className' => 'Comment',
			'foreignKey' => 'article_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Picture' => array(
			'className' => 'Picture',
			'foreignKey' => 'article_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

}
?>